package cn.zjj.org.mapper;

import cn.zjj.basic.mapper.BaseMapper;
import cn.zjj.org.domain.Employee;
import cn.zjj.org.query.EmployeeQuery;
import cn.zjj.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    //删除中间表数据
    void deleteEmployeeRole(Long id);
    //添加中间表数据
    void insertEmployeeRole(@Param("employee_id") Long id, @Param("role_id") Long role_id);


    //通过logininfo id 查权限菜单
    List<Menu> getMenusByLogininfoid(Long id);
    //通过logininfo id 查权限
    List<String> getPermissionsBylogininfoid(Long id);

    //根据logininfoid查
    Employee selectByLogininfoId(Long id);

    //根据shopid查询所有员工
    List<Employee> selectByShopId(Long shopid);
}
